Systems and methods for phase predictive impedance loss model calibration and compensation

ABSTRACT

The systems and methods of the present disclosure calibrate impedance loss model parameters associated with an electrosurgical system having no external cabling or having external cabling with a fixed or known reactance, and obtain accurate electrical measurements of a tissue site by compensating for impedance losses associated with the transmission line of an electrosurgical device using the calibrated impedance loss model parameters. A computer system stores voltage and current sensor data for a range of different test loads and calculates sensed impedance values for each test load. The computer system then predicts a phase value for each load using each respective load impedance value. The computer system back calculates impedance loss model parameters including a source impedance parameter and a leakage impedance parameter based upon the voltage and current sensor data, the predicted phase values, and the impedance values of the test loads.

BACKGROUND

1. Technical Field

The present disclosure generally relates to electrosurgery. More particularly, the present disclosure relates to systems and methods for compensating for losses to obtain accurate electrical measurements in cordless or fixed-reactance cabled electrosurgical systems.

2. Background of Related Art

Electrosurgery involves the application of high-frequency electric current to cut or modify biological tissue during a surgical procedure. Electrosurgery is performed using an electrosurgical generator, an active electrode, and a return electrode. The electrosurgical generator (also referred to as a power supply or waveform generator) generates an alternating current (AC), which is applied to a patient's tissue through the active electrode and is returned to the electrosurgical generator through the return electrode. The alternating current typically has a frequency above 100 kilohertz to avoid muscle and/or nerve stimulation.

During electrosurgery, the alternating current generated by the electrosurgical generator is conducted through tissue disposed between the active and return electrodes. The tissue's impedance converts the electrical energy (also referred to as electrosurgical energy) associated with the alternating current into heat, which causes the tissue temperature to rise. The electrosurgical generator controls the heating of the tissue, by controlling the electric power (i.e., electrical energy per time) provided to the tissue. Although many other variables affect the total heating of the tissue, increased current density usually leads to increased heating. The electrosurgical energy is typically used for cutting, dissecting, ablating, coagulating, and/or sealing tissue.

An electrosurgical generator includes a controller that controls the power applied to the tissue over some time period. The power applied to the tissue is controlled based upon power measurements and a power level set by the user or a power level needed to achieve a desired tissue effect. The power measurements are obtained by measuring the voltage and current of the RF signal generated by the RF output stage of the electrosurgical generator and calculating power based upon the measured voltage and current.

The voltage and current measured by the sensors of the electrosurgical generator, however, may not equal the actual voltage and current applied to the tissue because of RF impedance losses in the transmission line connecting the RF output stage of the electrosurgical generator to the electrodes of the electrosurgical instrument. As a result, the power calculations may be inaccurate and may lead to improper control of the electrosurgical energy applied to the tissue.

The affect of the RF impedance losses on the power and impedance calculations may be reduced by more accurately sampling the phase between the voltage and the current. However, this method requires greater computational complexity and more expensive high-speed hardware.

SUMMARY

The systems and methods of the present disclosure accurately determine the actual power applied to tissue and/or the actual impedance at the tissue site based on a predicted phase value. The disclosed methods for predicting the phase value are simple, require low computational complexity, and may be implemented using commonly available microprocessors, field programmable gate arrays (FPGAs), or digital signal processors (DSPs).

In one aspect, the present disclosure features a method of determining an impedance loss model parameter associated with a transmission line within an electrosurgical system. According to this method, a voltage and a current applied to a load coupled to an output of an electrosurgical system are sensed to obtain a sensed voltage and a sensed current, a sensed impedance value is calculated based upon the sensed voltage and the sensed current, a phase value is predicted based upon the sensed impedance value to obtain a predicted phase value, and the impedance loss model parameter is calculated based upon the predicted phase value, the sensed voltage, the sensed current, and a desired load impedance value.

The impedance loss model parameter may be a source impedance parameter and the source impedance parameter may be calculated by back calculating the source impedance parameter. The impedance loss model parameter may be a leakage impedance parameter and the leakage impedance parameter may be calculated by back calculating the leakage impedance parameter.

The impedance loss model parameter may be calculated by (1) converting the sensed voltage to a peak voltage value based upon the predicted phase value, (2) converting the sensed current to a peak current value based upon the predicted phase value, and (3) back calculating the impedance loss model parameter based upon the peak voltage value, the peak current value, and the desired load impedance value.

In another aspect, the present disclosure features a method of determining impedance loss model parameters associated with an electrosurgical device. According to this method, a voltage and a current applied to each of a plurality of loads separately coupled to an output of an electrosurgical device are sensed to obtain a plurality of sensed voltages and a plurality of sensed currents. Next, a plurality of sensed impedance values is calculated based upon the plurality of sensed voltages and the plurality of sensed currents. Next, a plurality of phase values is predicted based upon the plurality of sensed impedance values. Next, a source impedance parameter is calculated based upon a first predicted phase value of the plurality of phase values, a first sensed voltage of the plurality of sensed voltages, a first sensed current of the plurality of sensed currents, and a first predetermined load impedance value corresponding to a first load of the plurality of loads. Similarly, a leakage impedance parameter is calculated based upon a second predicted phase value of the plurality of phase values, a second sensed voltage of the plurality of sensed voltages, a second sensed current of the plurality of sensed currents, and a second predetermined load impedance value corresponding to a second load of the plurality of loads.

The plurality of phase values may be predicted based upon a polynomial function of the plurality of sensed impedance values. The polynomial function may be a third-order polynomial function. The plurality of loads may include loads rated between 0 ohms and 5000 ohms

The source impedance parameter may be calculated by (1) converting the first sensed voltage to a first peak voltage value based upon the predicted first phase value; (2) converting the first sensed current to a first peak current value based upon the predicted first phase value; (3) calculating a first output voltage value based upon the first peak voltage value, the first peak current value, and a previous source impedance parameter; (4) calculating a first output current value based upon the first output voltage value, the peak current value, and a previous leakage impedance parameter; and (5) back calculating the source impedance parameter based upon the first output current value, the first predetermined load impedance value, the first peak voltage value, and the first peak current value.

The source impedance parameter may be back calculated by (1) back calculating a desired output voltage value by multiplying the first output current value by the first predetermined load impedance value, (2) back calculating a desired source voltage value by subtracting the desired output voltage value from the first peak voltage value, and (3) back calculating the source impedance parameter by dividing the desired source voltage value by the first peak current value. The first predetermined load impedance value may be less than the second predetermined load impedance value.

The method of determining impedance loss model parameters associated with an electrosurgical device may further include sensing an impedance of each load of the plurality of loads using an impedance meter to obtain a plurality of predetermined load impedance values. The plurality of predetermined load impedance values may include the first predetermined load impedance value and the second predetermined load impedance value.

The leakage impedance parameter may be calculated by (1) converting the second sensed voltage to a second peak voltage value based upon the predicted second phase value; (2) converting the second sensed current to a second peak current value based upon the predicted second phase value; (3) calculating a second output voltage value based upon the second peak voltage value, the second peak current value, and the previous source impedance parameter; and (4) back calculating the leakage impedance parameter based upon the second output voltage value, the second predetermined load impedance value, and the second peak current value. The previous source impedance parameter and the previous leakage impedance parameter may be set to initial values before a first iteration.

The leakage impedance parameter may be back calculated by (1) back calculating a desired output current value by dividing the second output voltage value by the second predetermined load impedance value, (2) back calculating a desired current value by subtracting the desired output current from the second peak current value, and (3) back calculating the leakage impedance parameter by dividing the desired current value by the second output voltage value.

The leakage impedance parameter may further be calculated by (1) iterating the steps of calculating a first output voltage value, (2) calculating a first output current value, (3) back calculating the source impedance parameter, (4) calculating a second output voltage value, and (5) back calculating the leakage impedance parameter.

In yet another aspect, the present disclosure features a computer system for calibrating measurement circuitry of an electrosurgical device. The computer system includes a memory, a processor coupled to the memory, and a communications interface. The memory stores data including a plurality of sensor voltage values, a plurality of sensor current values, a plurality of predicted phase values, and a plurality of predetermined load impedance values.

The processor calculates a source impedance parameter based upon a first predicted phase value of the plurality of phase values, a first sensed voltage of the plurality of sensed voltages, a first sensed current of the plurality of sensed currents, and a first predetermined load impedance value. The processor also calculates a leakage impedance parameter based upon a second predicted phase value of the plurality of phase values, a second sensed voltage of the plurality of sensed voltages, a second sensed current of the plurality of sensed currents, and a second predetermined load impedance value. The communications interface transmits the source impedance parameter and the leakage impedance parameter to the measurement circuitry of the electrosurgical device.

The communications interface may receive the plurality of sensor voltage values and the plurality of sensor current values from the electrosurgical device and may store the plurality of sensor voltage values and the plurality of sensor current values in the memory.

The processor may be a first processor, the source impedance parameter may be a first source impedance parameter, the leakage impedance parameter may be a first leakage impedance parameter, and the computer system may further include a second processor.

The second processor calculates a second source impedance parameter based upon the first predicted phase value of the plurality of phase values, the first sensed voltage of the plurality of sensed voltages, the first sensed current of the plurality of sensed currents, and the first predetermined load impedance value. The second processor also calculates a second leakage impedance parameter based upon the second predicted phase value of the plurality of phase values, the second sensed voltage of the plurality of sensed voltages, the second sensed current of the plurality of sensed currents, and the second predetermined load impedance value. The second processor then averages the first source impedance parameter and the second source impedance parameter to obtain an average source impedance parameter, and averages the first leakage impedance parameter and the second leakage impedance parameter to obtain an average leakage impedance parameter. The communications interface may transmit the average source impedance parameter and the average leakage impedance parameter to the measurement circuitry of the electrosurgical device.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the present disclosure are described with reference to the accompanying drawings wherein:

FIG. 1 is a perspective view of components of an electrosurgical system according to embodiments of the present disclosure;

FIG. 2 is a block diagram of an electrosurgical system in communication with a calibration computer system according to embodiments of the present disclosure;

FIG. 3 is a block diagram of a portable handheld electrosurgical system in communication with a calibration computer system according to embodiments of the present disclosure;

FIG. 4 is a flow diagram of a method of calibrating impedance loss model parameters according to some embodiments of the present disclosure;

FIG. 5 is a flow diagram of the method of calculating the impedance loss model parameters of FIG. 4;

FIG. 6 is a flow diagram of a method of calibrating impedance loss model parameters, i.e., a source impedance parameter and a leakage impedance parameter, according to other embodiments of the present disclosure;

FIG. 7 is a flow diagram of a method of calculating the source impedance parameter of FIG. 6 according to some embodiments of the present disclosure;

FIG. 8 is a flow diagram of a method of calculating the leakage impedance parameter of FIG. 6 according to some embodiments of the present disclosure;

FIG. 9 is a flow diagram of a method of calculating the source impedance parameter and the leakage impedance parameter of FIG. 6 according to other embodiments of the present disclosure;

FIG. 10 is a flow diagram of a method of back calculating the source impedance parameter of FIGS. 7 and 9 according to some embodiments of the present disclosure;

FIG. 11 is a flow diagram of a method of back calculating the leakage impedance parameter of FIGS. 8 and 9 according to some embodiments of the present disclosure;

FIG. 12 is a flow diagram of a method of compensating for losses in an electrosurgical system according to embodiments of the present disclosure;

FIG. 13 is a flow diagram of a method of calculating at least one metric of FIG. 12 according to some embodiments of the present disclosure;

FIG. 14 is a flow diagram of a method of predicting the phase value of FIG. 12 according to some embodiments of the present disclosure; and

FIG. 15 is a flow diagram of a method of calculating at least one metric of FIG. 12 according to other embodiments of the present disclosure.

DETAILED DESCRIPTION

The systems and methods of the present disclosure calibrate an impedance loss model associated with the transmission lines within electrosurgical systems. These systems and methods involve sensing the voltage and current applied to a test load coupled to the output of the electrosurgical system, calculating a sensed impedance, predicting a phase between the voltage and current based upon the sensed impedance, and calculating at least one internal impedance value based upon the measured voltage and current, the predicted phase between the voltage and current, and a predetermined impedance of the test load.

The systems and methods of the present disclosure also compensate for impedance losses in the transmission lines of the electrosurgical systems using the calibrated impedance loss model. These systems and methods involve sensing a voltage and a current of an electrosurgical signal generated by and applied to a tissue site by the electro surgical system, predicting a phase value based upon the sensed voltage and the sensed current, calculating at least one metric at the tissue site based upon the sensed voltage, the sensed current, the predicted phase value, and at least one impedance loss model parameter associated with the transmission lines or cables of the electrosurgical systems.

FIG. 1 is a perspective view of an electrosurgical system 100 that incorporates the calibration and compensation systems and methods according to embodiments of the present disclosure. The electrosurgical system 100 includes an electrosurgical generator 102 for generating electrosurgical energy and various electrosurgical instruments 112, 114 that electrically connect to the generator 102 and deliver the electrosurgical energy to tissue during a surgical procedure. As described in further detail below, the generator 102 includes electronic circuitry (e.g., analog and digital circuitry) that measures the impedance and calculates the power delivered to tissue.

The electrosurgical generator 102 includes a plurality of outputs, e.g., terminals 104 and 106, for interfacing with various electrosurgical instruments, e.g., the return pad 110, the monopolar active electrode 112, and the bipolar electrosurgical forceps 114. The return pad 110 and the monopolar active electrode 112 are used to perform monopolar electrosurgical procedures and the bipolar electrosurgical forceps is used to perform bipolar electrosurgical procedures. The electrosurgical generator 102 includes electronic circuitry that generates radio frequency power for various electrosurgical modes (e.g., cutting, coagulating, or ablating) and procedures (e.g., monopolar, bipolar, or vessel sealing).

The electrosurgical instruments 112, 114 include one or more electrodes for treating tissue of a patient (e.g., an electrosurgical cutting probe or ablation electrodes (not shown)). Electrosurgical energy, e.g., radio frequency (RF) current, is supplied to the monopolar active electrode 112 by the electrosurgical generator 102 via a supply line 116, which is connected to an active terminal 104 of the electrosurgical generator 102, allowing the monopolar active electrode 112 to coagulate, seal, ablate and/or otherwise treat tissue. The electrosurgical current returns from the tissue to the generator 102 via a return line 118 of the return pad 110 to a return terminal 106 of the electrosurgical generator 102. The active terminal 104 and the return terminal 106 may include connectors (not shown) configured to interface with plugs (also not shown) disposed at the end of the supply line 116 of the monopolar active electrode 112 and at the end of the return line 118 of the return pad 110.

The return pad 110 includes return electrodes 120 and 122 that are arranged to minimize the risk of tissue damage by maximizing the overall contact area with the patient's tissue. In addition, the electrosurgical generator 102 and the return pad 110 may be configured to monitor tissue-to-patient contact to ensure that sufficient contact exists between the return pad 110 and the patient to minimize the risk of tissue damage.

The electrosurgical system 100 also includes a bipolar electrosurgical forceps 114 having electrodes 124, 126 for treating tissue of a patient. The bipolar electrosurgical forceps 114 includes opposing jaw members 134, 136. The first jaw member 134 includes an active electrode 124 and the second jaw member 136 includes a return electrode 126. The active electrode 124 and the return electrode 126 are connectable to the electrosurgical generator 102 through cable 128, which includes a supply line 130 and a return line 132. The supply line 130 is connectable to the active terminal 104 and the return line 132 is connectable to the return terminal 106. The bipolar electrosurgical forceps 114 connects to the active terminal 104 and the return terminal 106 of the electrosurgical generator 102 through a plug (not explicitly shown) disposed at the end of the cable 128.

The electrosurgical generator 102 may include a plurality of connectors to accommodate various types of electrosurgical instruments (e.g., monopolar active electrode 112 and bipolar electrosurgical forceps 114). The electrosurgical generator 102 may also include a switching mechanism (e.g., relays) to switch the supply of RF energy between the connectors. For example, when the monopolar active electrode 112 is connected to the electrosurgical generator 102, the switching mechanism switches the supply of RF energy to only the monopolar plug. The active terminal 104 and the return terminal 106 may be coupled to a plurality of connectors (e.g., inputs and outputs) of the electrosurgical generator 102 to power a variety of instruments.

The electrosurgical generator 102 includes suitable input controls (e.g., buttons, activators, switches, or touch screens) for controlling the electrosurgical generator 102. In addition, the electrosurgical generator 102 may include one or more display screens for providing the user with a variety of output information (e.g., intensity settings and treatment complete indicators). The controls allow the user to adjust parameters of the RF electrical energy (e.g., the power or the waveform) so that they are suitable for a particular task (e.g., coagulating, tissue sealing, or cutting). The electrosurgical instruments 112 and 114 may also include a plurality of input controls that may be redundant with certain input controls of the electrosurgical generator 102. Placing the input controls at the electrosurgical instruments 112 and 114 allows for easier and faster modification of RF energy parameters during the surgical procedure without requiring interaction with the electrosurgical generator 102.

FIG. 2 is a block diagram of an electrosurgical system 200, which includes the generator 102 of FIG. 1 and a calibration computer system 240. The generator 102 of the electrosurgical system 100 includes a controller 220, a high voltage power supply 202, and a radio frequency output stage 206, which operate together to generate an electrosurgical signal to be applied to tissue through electrodes 209, 210 of an electrosurgical instrument 230. The controller 220 includes a digital signal processor (DSP) 222, a main processor 224, and a memory 226. The controller 220 may be any suitable microcontroller, microprocessor (e.g., Harvard or Von Neumann architectures), PLD, PLA, or other digital logic. Memory 226 may be volatile, non-volatile, solid state, magnetic, or other suitable storage memory.

The controller 220 may also include various circuitry that serve as an interface between the main processor 224 and other circuitry within the electrosurgical generator 102 (e.g., amplifiers and buffers). The controller 220 receives various feedback signals that are used by the main processor 224 and/or the DSP 222 to generate control signals to control various subsystems of the generator 102, including the HVPS 202 and the RF output stage 206. These subsystems are controlled to generate electrosurgical energy having desired characteristics for performing surgical procedures on tissue, which is represented in FIG. 2 by a load 234 (Z_(load)).

The generator 102 includes an AC/DC power supply 205 that receives power from an alternating current (AC) source 203. The AC/DC power supply converts the AC into direct current (DC) and provides the DC to the energy conversion circuit 204. The energy conversion circuit 204 then converts the DC power at a first energy level into DC power at a second, different energy level based upon control signals received from the controller 220. The energy conversion circuit 204 supplies the DC power at the second, different energy level to the RF output stage 206. The RF output stage 206 inverts the DC power to produce a high-frequency alternating current (e.g., RF AC), which is applied to tissue. For example, the RF output stage 206 may generate a high-frequency alternating current using push-pull transistors coupled to a primary side of a step-up transformer (not shown) contained within the RF output stage 206.

The electrosurgical generator 102 includes measurement circuitry that is configured to accurately determine voltage, current, impedance, and power at a tissue site so that the controller 220 can use this feedback information to accurately control the characteristics of the electrosurgical output. This measurement circuitry includes a voltage sensor 211 and a current sensor 212 coupled to the output of the RF output stage 206. The voltage sensor 211 senses the voltage across the output of the RF output stage 206 and provides an analog signal representing the sensed voltage 213 (V_(sense)) to an analog-to-digital converter (ADC) 215, which converts the analog signal into digital form. Similarly, the current sensor 212 senses the current at the output of the RF output stage 206 and provides an analog signal representing the sensed current 214 (I_(sense)) to another ADC 215, which converts the analog signal into digital form.

The DSP 222 receives the sensed voltage and sensed current data and uses it to calculate the impedance and/or the power at the tissue site. The main processor 224 of the controller 220 executes algorithms that use the sensed voltage, the sensed current, the impedance, and/or the power to control the HVPS 202 and/or the RF Output Stage 206. For example, the main processor 224 may execute a PID control algorithm based upon the calculated power and a desired power level, which may be selected by a user, to determine the amount of electrical current that should be supplied by the RF output stage 206 to achieve and maintain the desired power level at the tissue site.

To accurately control the electrosurgical energy applied to tissue, the controller 220 needs to accurately sense the voltage and current at the tissue. The voltage sensed by the voltage sensor 211 and the current sensed by the current sensor 212, however, may be inaccurate because of the RF impedance losses associated with the first and second transmission lines 221, 223 connected between the RF output stage 206 and the electrodes 209, 210. In other words, the voltage and current measured at the RF output stage 206 by the voltage and current sensors 211, 212 may not equal the actual voltage and current 231, 232 at the load (i.e., tissue) because of the RF impedance losses.

These RF impedance losses may be modeled as a source impedance 252 connected in series with the first transmission line 221 and a leakage impedance 254 connected between the first transmission line 221 and the second transmission line 223. This arrangement of the source impedance 252 and the leakage impedance 254 forms an impedance loss model 250. The voltage and current output from the RF output stage 206 (and sensed by the voltage and current sensors 211, 212, respectively) represent an input voltage 255 (V_(in)) and an input current 256 (I_(in)) respectively, applied to the impedance loss model 250. Also, the voltage and current output from the generator 102 and supplied to the load 234 (Z_(load)) represent an output voltage 257 (V_(out)) and an output current 258 (I_(out)), respectively, output from the impedance loss model 250.

To compensate for the impedance losses that introduce errors into the sensor data, the electrosurgical system 200 calibrates source and leakage impedance loss model parameters associated with the source impedance 252 and the leakage impedance 254 of the impedance loss model 250 and then calculates new sensed voltages and currents based upon these parameters. The new sensed voltages and currents represent accurate measurements of the voltage and current at the tissue.

The calibration process involves sensing a voltage and a current of an electrosurgical signal applied to a test load coupled to the output of the electrosurgical system, sensing a phase between the voltage and the current, and calculating a source impedance loss model parameter and a leakage impedance loss model parameter based upon the sensed voltage, the sensed current, the sensed phase, and a predetermined impedance of the test load. The predetermined impedance of the test load is measured with an impedance meter.

The impedance loss model parameters are calculated by an external calibration computer system 240 that is connectable to the controller 220 of the generator 102. The calibration computer system 240 includes a processor 242, a memory 244, and a communications interface 245. The processor 242 accesses measurement data, which includes sensor voltage values, sensor current values, and predicted phase values, via the communications interface 245 and stores the measurement data in the memory 244. Then, the processor 242 executes a calibration process to calculate the impedance loss model parameters based upon the measurement data. After executing the calibration process, the processor 242 loads the memory 226 of the controller 220 with the impedance loss model parameters. In some embodiments, the functions of the calibration computer system 240 are performed by the controller 220 of the generator 102.

During operation, the main processor 224 accesses the memory 226 to retrieve the calibrated impedance loss model parameters and provides them to the DSP 222. The DSP 222 uses the calibrated impedance loss model parameters and the voltage, current, and phase measurement data to calculate an accurate voltage, current, impedance, and/or power at the tissue site.

The accuracy of the calibration and compensation processes depends, in part, on the accuracy of the phase. The phase can be determined by sampling the sensed voltage and the sensed current and computing the phase between the sensed voltage and the sensed current. This method, however, requires complex algorithms and expensive, power-hungry, and high-speed hardware.

According to embodiments of the present disclosure, the internal transmission lines 221, 223 and the external cables 207, 208 of the electrosurgical system 200 are physically arranged and disposed so that the phase between the voltage and current applied to the tissue may be predicted using a simple equation and inexpensive, low-power, and low-speed hardware. In particular, the internal transmission lines 221, 223 and the external cables 207, 208 are configured so that they have a fixed and known reactance (i.e., the imaginary part of the impedance). For example, the turns of the internal transmission lines 221, 223 are specified so that they have a fixed and known reactance.

Thus, if external impedance changes (e.g., changes in tissue impedance) are dominated by changes in resistance as opposed to reactance, the phase between the sensed voltage and the sensed current can be predicted based upon sensed external impedance as shown in the following equation:

${\varphi_{VI} = {{arc}\;{\sin\left( \frac{X}{Z} \right)}}},$ where X is the known reactance and |Z| is the absolute value of a sensed impedance. The absolute value of the sensed impedance is calculated by dividing a measured voltage by a measured current.

FIG. 3 is a block diagram of an electrosurgical system 300 according to other embodiments of the present disclosure. The electrosurgical system 300 is similar to the electrosurgical system of FIG. 2, except that the generator 102 and the electrosurgical instrument 230 of FIG. 2 are both incorporated into a portable, handheld electrosurgical device 301. The handheld electrosurgical device 301 may incorporate a battery pack 320 that provides power to the various circuitry of the handheld electrosurgical device 301.

Like the electrosurgical system 200 of FIG. 2, the voltage sensed by the voltage sensor 211 and the current sensed by the current sensor 212 in the electrosurgical system 300 may not equal the actual voltage and current at the tissue site because of the RF impedance losses associated with the transmission lines 305, 306 that are connected between the RF Output Stage 206 and the electrodes 303, 304. The RF impedance losses may be modeled and compensated for by using the same impedance loss model 250 of FIG. 2.

As described above, the accuracy of the calibration and compensation processes depends, in part, on the accuracy of the phase. The phase can be determined by sampling the sensed voltage and the sensed current and computing the phase between the sensed voltage and the sensed current. This method, however, requires complex algorithms and expensive, power-hungry, high-speed hardware.

The internal transmission lines 305, 306 of the electrosurgical system 300 are physically arranged and disposed so that the phase between the voltage and current applied to the tissue may be predicted in a similar manner as described above with respect to the electrosurgical system 300 of FIG. 2. For example, the internal transmission lines 305, 306 are configured so that they have a fixed and known reactance (i.e., the imaginary part of the impedance). In particular, the turns of the internal transmission lines 305, 306 are specified so that they have a fixed and known reactance.

FIG. 4 illustrates an impedance loss model calibration procedure according to embodiments of the present disclosure. Before the handheld electrosurgical device 301 is used to perform surgical procedures, a calibration procedure is performed to determine impedance loss model parameters (also referred to as cable compensation values). As shown in FIG. 4, the calibration procedure involves sensing a voltage and a current applied to a test load coupled to the electrodes of the electrosurgical device 301 (step 402), calculating a sensed impedance value based upon the sensed voltage and the sensed current (step 404), predicting the phase between the sensed voltage and the sensed current based upon the sensed impedance value (406), and calculating at least one impedance value (e.g., the value of the source impedance Z_(source) 210 and/or the value of the leakage impedance Z_(leakage) 210) based upon the predicted phase value, the sensed voltage, the sensed current, and a desired impedance of the test load (step 408).

For the calibration procedure, the test load may be a power resistor, a load resistor, or other resistive element that represents an impedance of tissue. In some embodiments, the desired impedance of the test load is the impedance measured using an impedance meter, e.g., an LCR meter, with the frequency set to the operational frequency of the electrosurgical device, e.g., 470 kHz.

FIG. 5 is a flow diagram of the method of calculating the impedance loss model parameters of FIG. 4. First, the sensed voltage is converted to a peak voltage value based upon the predicted phase value (step 502). Similarly, the sensed current is converted to a peak current value based upon the predicted phase value (step 504). Then, the loss model parameter is back calculated based upon the peak voltage value, the peak current value, and the desired load impedance value

FIG. 6 is a flow diagram of a method of calibrating impedance loss model parameters, i.e., a source impedance parameter and a leakage impedance parameter, according to other embodiments of the present disclosure. This calibration method uses multiple test loads having a range of rated resistance or impedance values because the reactance of the transmission lines or cables of the electrosurgical system varies based upon the impedance of the tissue. For example, source impedance losses are dominant for low resistance loads and leakage impedance losses are dominant for high resistance loads.

In some embodiments, the resistance of the power resistors may range between 0 ohms and 5000 ohms. In other embodiments, the resistance of the power resistors may range between 0 ohms and 1500 ohms.

First, a voltage and a current is sensed or measured across each of a plurality of test loads, e.g., power resistors, which are separately coupled to an output of the electrosurgical system to obtain a plurality of sensed voltages and a plurality of sensed currents (step 602). Voltage and current measurements are taken after an operating mode, e.g., bipolar standard, and an output port of the electrosurgical system, if any, are selected. Also, the control is set to closed-loop control and the output power is set to a desired level, e.g., 50 W for bipolar standard. In some embodiments, the rms voltage and rms current applied to each of the test loads (V_(sense) and I_(sense)) are measured using the ADCs 215 disposed within the electrosurgical generators as shown in FIGS. 1 and 2.

Next, the sensed voltages and currents are used to calculate sensor impedance values for each of the test loads (step 604). For example, the sensor impedance values are calculated according to the following equation:

$Z_{sense} = {\frac{V_{sense}}{I_{sense}}.}$ These sensor impedance values are then used to predict the phase between the sensed voltage and sensed current for each of the test loads (step 606). For example, the predicted phase value may be calculated according to a polynomial function of the sensor impedance values. An example of such a polynomial function is: φ_(VI) =aZ _(load) ³ −bZ _(load) ² +cZ _(load) −d, where the polynomial coefficients are: a=6.538×10⁻¹², b=1.0×10⁻⁷, c=5.73×10⁻⁴, and d=0.1766687.

The polynomial function may be determined using known curve fitting techniques. The curve fitting techniques are used to approximate the change in phase based on absolute impedance measured over a varying external load ranging from a minimum load (e.g., 0 ohms) to a maximum load (e.g., 1500 or 5000 ohms) given a fixed internal source impedance and a fixed internal leakage impedance. In other words, as the real impedance (i.e., tissue resistance) changes from a minimum value to a maximum value and the imaginary impedance (i.e., reactance) remains fixed, there is a relationship between the absolute impedance and the real impedance. A curve fitting technique may be applied to fit a polynomial function to this relationship over the range of possible real impedance values (e.g., 0-1500 ohms).

The polynomial coefficients of the polynomial function determined by a curve fitting technique are unique for each particular generator. In some embodiments, the imaginary impedance (i.e., reactance) may be fixed across various manufacturing instances of a particular type of generator by specifying the number of turns of the RF transmission wires internal to the generator. In these embodiments, a common set of polynomial coefficients can be used for all generators of that particular type.

Before or during the calibration procedure, the test loads are separately connected to the leads of an impedance meter, e.g., an LCR meter, via test cables, e.g., short banana cables, to measure the impedance of each of the test loads. For example, the following power resistors having the following respective rated resistances may be measured to obtain the following respective measured impedance values:

Power Rated Resistance Measured Impedance Resistor (ohms) (ohms) Zload_05 5   5.0 + 2.0i Zload_10 10  10.01 + 3.0i Zload_20 20  20.01 + 5.07·i Zload_50 50  50.08 + 1.62·i Zload_100 100 100.43 + 6.40·i Zload_200 200 201.05 + 7.54·i Zload_300 300 301.35 + 9.74·i Zload_500 500 502.24 + 3.84·i Zload_1000 1000 1001.0 − 6.62·i Zload_1500 1500 1501.0 − 12.0·i

In some embodiments, the power resistors may further include a power resistor having a rated resistance of 0 ohms. If the impedance of the test cables, e.g., short banana cables, and the impedance of the test loads, e.g., power resistors, are measured together, then the impedances of the test cables is not included in the calibration calculations. If, on the other hand, the impedance of the test cables is measured separately from the impedance of the power resistors, then the impedance of the test cables are included in the calibration calculations. For example, the measured impedance of a first test cable (Cable 1) may be 0.0533+2.12i ohms and the measured impedance of a second test cable (Cable 2) may be 0.0305+1.62i ohms.

In some embodiments, the measured rms voltage, the measured rms current, the calculated phase, and the actual measured impedances of the test loads and test cable are formed into an input array, e.g.:

V_(sense(rms)) I_(sense(rms)) φ_(VI) Z_(load(actual)) 5.87354 1.79432 −0.1749941 Cable1 + Cable2 10.236 1.4174247 −0.1725 Zload_05 + Cable1 + Cable2 20.290839 1.5947771 −0.1694 Zload_10 + Cable1 + Cable2 49.453838 2.0342297 −0.162798 Zload_20 + Cable1 + Cable2 89.06355 1.681512 −0.146599 Zload_50 + Cable1 + Cable2 90.157114 0.901156 −0.1203367 Zload_100 + Cable1 + Cable2 89.970472 0.4828364 −0.0733272 Zload_200 + Cable1 + Cable2 89.78422 0.3280953 −0.0272202 Zload_300 + Cable1 + Cable2 90.344142 0.2036573 0.0584109 Zload_500 + Cable1 + Cable2 89.784217 0.107226 0.2368501 Zload_1000 + Cable1 + Cable2 89.970472 0.0747309 0.379646 Zload_1500 + Cable1 + Cable2 This input array may be stored in the memory 244 of the calibration computer system 240 so that the processor 242 can retrieve the measurement data in the input array and calculate loss model parameters based upon the measurement data.

Referring again to FIG. 6, in step 608, a source impedance parameter is calculated based upon a first predicted phase value, a first sensed voltage, a first sensed current, and a first predetermined load impedance value corresponding to a first load. Then, in step 610, a leakage impedance parameter is calculated based upon a second predicted phase value, a second sensed voltage, a second sensed current, and a second predetermined load impedance value corresponding to a second load. The first and second predetermined load impedance values are obtained by measuring the impedances of the first and second loads, respectively, using an impedance meter. In some embodiments, the first and second predetermined load impedance values are selected from a plurality of predetermined load impedance values that are obtained by measuring the impedances of a plurality of loads using an impedance meter.

In some embodiments, the impedance loss model parameters are calculated using a back-calculation technique. According to the back-calculation technique, appropriate test load data is first selected to optimize measurement accuracy across a range of loads. For example, low impedance data, e.g., the data for the 5 ohm load, may be used to determine the source impedance loss model parameter and high impedance data, e.g., the data for the 1500 ohm load, may be used to determine the leakage impedance loss model parameter. Then, the impedance loss model parameters are calculated based upon measurement data (e.g., sensed voltage, sensed current, sensed phase, and predetermined impedance) for different test loads. For example, as described in more detail below, the source impedance loss model parameter is calculated based upon the measurement data for a low impedance load and the leakage impedance loss model parameter is calculated based upon the measurement data for a high impedance load.

FIG. 7 is a flow diagram of a method of calculating the source impedance loss model parameter of FIG. 6. In step 702, the first sensed voltage (e.g., a first voltage sensed by the voltage sensor 211 with a low impedance test load placed across the electrodes 303, 304) is converted to a first peak voltage value and the first sensed current (e.g., a first current sensed by the current sensor 212 with a low impedance test load placed across the electrodes 303, 304) is converted to a first peak current value based upon the first predicted phase value. For example, the first sensed voltage and first sensed current are converted to rectangular peak values according to the following equations: I _(peak,1)=(I _(sense,1)·cos({circumflex over (φ)}_(VI,1))+I _(sense,1)·sin({circumflex over (φ)}_(VI,1)))·√{square root over (2)}, and V _(peak,1) =V _(sense,1)·√{square root over (2)} where I_(peak,1) represents the first peak current value, represents the first sensed current, {circumflex over (φ)}_(VI,1) represents the first predicted phase value, V_(peak,1) represents the first peak voltage value, and V_(sense,1) represents the first sensed voltage.

Next, a first output voltage value is calculated based upon the first peak voltage value, the first peak current value, and a previous source impedance loss model parameter (also referred to herein as a previous source impedance parameter) (step 704). For example, the first output voltage value is calculated by first calculating a first source voltage (V_(source,1)), i.e., the voltage drop across the previous source impedance loss model parameter (Z_(source)(n−1)), according to the following equation: V _(source,1) =I _(peak,1) ·Z _(source)(n−1). In some embodiments, the previous source impedance parameter and the previous leakage impedance parameter are set to initial values before a first iteration of the loss model calibration procedure. Then, the first output voltage (V_(out,1)) is calculated according to the following equation: V _(out,1) =V _(peak,1) −V _(source,1)

Next, a first output current value is calculated based upon the first output voltage value, the peak current value, and a previous leakage impedance loss model parameter (also referred to herein as a previous leakage impedance parameter) (step 706). For example, the first output current value (I_(out,1)) is calculated by first calculating a first leakage current, i.e., the current flowing through the previous leakage impedance loss model parameter (Z_(leakage)(n−1)), according to the following equation:

$I_{{leakage},1} = {\frac{V_{{out},1}}{Z_{leakage}\left( {n - 1} \right)}.}$ In some embodiments, The first output current value is then calculated according to the following equation: I _(out,1) =I _(peak,1) −I _(leakage,1)·

Finally, the source impedance loss model parameter is back calculated based upon the first output current value, the first predetermined load impedance value (e.g., a premeasured impedance value of a first test load), the first peak voltage value, and the first peak current value (step 708).

A method of back calculating the source impedance loss model parameter is shown in FIG. 10. First, a desired output voltage value (V_(out(desired))) is back calculated by multiplying the first output current value by the first predetermined load impedance value (Z_(load,1)), i.e.: V _(out(desired)) =I _(out,1) ·Z _(load,1)· Second, a desired source voltage V_(source(desired)) is back calculated by subtracting the desired output voltage value from the first peak voltage value, i.e.: V _(source(desired)) =V _(peak,1) −V _(out(desired))· Finally, the current source impedance loss model parameter Z_(source)(n) is back calculated by dividing the desired source voltage value by the first peak current value, i.e.:

${Z_{source}(n)} = \frac{V_{{source}{({desired})}}}{I_{{peak},1}}$

FIG. 8 is a flow diagram of a method of calculating the leakage impedance loss model parameter of FIG. 6. In step 802, a second sensed voltage (e.g., a second voltage sensed by the voltage sensor 211 with a high impedance test load placed across the electrodes 303, 304) is converted to a second peak voltage value and a second sensed current (e.g., a second current sensed by the current sensor 212 with a high impedance test load placed across the electrodes 303, 304) is converted to a second peak current value based upon a second predicted phase value.

For example, the second sensed voltage and second sensed current are converted to rectangular peak values according to the following equations: I _(peak,2)=(I _(sense,2)·cos({circumflex over (φ)}_(VI,2))+I _(sense,2) sin({circumflex over (φ)}_(VI,2)))·√{square root over (2)}, and V _(peak,2) =V _(sense,2)·√{square root over (2)}, where I_(peak,2) represents the second peak current value I_(sense,2) represents the second sensed current, {circumflex over (φ)}_(VI,2) represents the second predicted phase value, V_(peak,2) represents the second peak voltage value, and V_(sense,2) represents the second sensed voltage.

Next, a second output voltage value is calculated based upon the second peak voltage value, the second peak current value, and the previous source impedance loss model parameter (step 804). For example, the second output voltage value is calculated by first calculating a second source voltage (V_(source,2)), i.e., the voltage drop across the previous source impedance loss model parameter (Z_(source)(n−1)), according to the following equation: V _(source,2) =I _(peak,2) ·Z _(source)(n−1),

Then, the second output voltage (V_(out,2)) is calculated according to the following equation: V _(out,2) =V _(peak,2) −V _(source,2)

Finally, the leakage impedance loss model parameter is back calculated based upon the second output voltage value, the second predetermined load impedance value (e.g., a premeasured impedance value of a second test load), and the second peak current value (step 708).

A method of back calculating the leakage impedance loss model parameter is shown in FIG. 11. First, a desired output current value (I_(out(desired))) is back calculated by dividing the second output voltage value by the second predetermined load impedance value (Z_(load,2)), i.e.:

$I_{{out}{({desired})}} = {\frac{V_{{out},2}}{Z_{{load},2}}.}$ Second, a desired leakage current I_(leakage(desired)) is back calculated by subtracting the desired output current value from the second peak current value, i.e.: I _(leakage(desired)) =I _(peak,2) −I _(out(desired))· Finally, the current leakage impedance loss model parameter Z_(leakage)(n) is back calculated by dividing the second output voltage value by the desired leakage current value, i.e.:

${Z_{leakage}(n)} = {\frac{V_{{out},2}}{I_{{leakage}{({desired})}}}.}$

In some embodiments, the source impedance loss model parameter and the leakage impedance loss model parameter are calculated together in an iterative manner. An example method of iteratively calculating the impedance loss model parameters is shown in the flow diagram of FIG. 9. In step 902, first and second sensed voltages are converted to first and second peak voltage values and first and second sensed current values are converted to first and second peak current values based upon first and second predicted phase values. Next, in steps 904-908, which are identical to steps 704-708 of FIG. 7, the source impedance loss model parameter is calculated. Then, in steps 910-912, which are identical to steps 804-806 of FIG. 8, the leakage impedance loss model parameter is calculated.

Finally, in step 914, it is determined whether the number of iterations is greater than a predetermined value. If it is determined that the number of iterations is greater than the predetermined value, then the method of calculating the impedance loss model parameters ends in step 917. Otherwise, the number of iterations is incremented (e.g., by one) in step 916 and steps 904-912 are repeated. In some embodiments, the predetermined value is set to a number of iterations that produces accurate impedance loss model parameters.

In some embodiments, multiple redundant DSPs are used to determine the impedance loss model parameters to ensure accuracy. For example, as shown in FIG. 3, the calibration computer system 340 includes a first DSP 341 and a second DSP 342. The first DSP 341 calculates the source and leakage impedance loss model parameters according to the various methods described above and the second DSP 342 performs the same calculations. Then, the impedance loss model parameters calculated by the DSPs 341, 342 are averaged to obtain an average source impedance parameter and an average leakage impedance parameter. The processor 242 receives the average source impedance parameter and the average leakage impedance parameter and transmits them to the controller 220 via the communications interface 245. In other embodiments, the calibration computer system 340 is implemented in the controller 220 or the portable electrosurgical device 301 of FIG. 3.

When the electrosurgical systems 200, 300 are used to perform surgical procedures, the calibrated impedance loss model parameters are used to compensate for the effect of impedance losses on the accuracy of the power and/or impedance measurements at the load. As shown in FIG. 12, the compensation process involves sensing a voltage and a current of an electrosurgical signal generated by and applied to a tissue site by the electrosurgical device (step 1202), predicting a phase value based upon the sensed voltage and the sensed current (step 1204), and calculating at least one metric at the tissue site based upon the sensed voltage, the sensed current, the predicted phase value, and at least one impedance loss model parameter associated with the electrosurgical system (step 1206). The at least one metric at the tissue site includes voltage, current, power, and/or impedance. Also, the at least one impedance loss model parameter includes a source impedance parameter and/or a leakage impedance parameter.

As shown in FIG. 13, calculating the at least one metric at the tissue site includes converting the sensed voltage to a complex voltage value based upon the predicted phase value (step 1302), converting the sensed current to a complex current value based upon the predicted phase value (step 1302); and calculating the at least one metric at the tissue site based upon the complex voltage value, the complex current value, and the at least one loss model parameter (step 1304).

As shown in FIG. 14, predicting the phase value includes calculating a sensed impedance value based upon the sensed voltage and the sensed current (1402) and predicting the phase value based upon the sensed impedance value (1404). In some embodiments, predicting the phase value is based upon a polynomial function of the sensed impedance value. The polynomial function may be a third-order polynomial function.

As shown in FIG. 15, calculating the at least one metric at the tissue site includes performing network solution calculations to determine the impedance at the tissue site. These calculations first involved multiplying the sensed current (I_(sense)) by the source impedance parameter (Z_(source)) to obtain a source impedance voltage value (V_(Z) _(source) ) (step 1502). In step 1504, the source impedance voltage value (V_(Z) _(source) ) is subtracted from the sensed voltage (V_(sense)) to obtain a load voltage value (V_(load)). In step 1506, the load voltage value (V_(load)) is divided by the leakage impedance parameter (Z_(leakage)) to obtain a leakage current value (I_(leakage)). In step 1508, the leakage current value (I_(leakage)) is subtracted from the sensed current (I_(sense)) to obtain a load current value (I_(load)). Finally, in step 1510, the load voltage value (V_(load)) is divided by the load current value (I_(load)) to obtain the load impedance value (Z_(load)). The load voltage value (V_(load)) and the load current value (I_(load)) can also be used to calculate the power at the tissue site.

Although the illustrative embodiments of the present disclosure have been described herein with reference to the accompanying drawings, it is to be understood that the disclosure is not limited to those precise embodiments, and that various other changes and modifications may be effected therein by one skilled in the art without departing from the scope or spirit of the disclosure. 

What is claimed is:
 1. A method of determining impedance loss model parameters associated with a transmission line coupled between an electrosurgical generator and a load, comprising: sensing a voltage at an output of the electrosurgical generator; sensing a current at the output of the electrosurgical generator; calculating a sensed impedance value based upon the sensed voltage and the sensed current; predicting a phase value based upon the sensed impedance value to obtain a predicted phase value; and calculating the impedance loss model parameters, which include a parameter of a source impedance in series with the transmission line and a parameter of a leakage impedance in parallel with the load, based upon the predicted phase value, the sensed voltage, the sensed current, and a desired load impedance value.
 2. The method of claim 1, wherein calculating the impedance loss model parameter includes: converting the sensed voltage to a peak voltage value based upon the predicted phase value; converting the sensed current to a peak current value based upon the predicted phase value; and calculating the impedance loss model parameter based upon the peak voltage value, the peak current value, the desired load impedance value, and a previous impedance loss model parameter.
 3. A method of determining impedance loss model parameters associated with an electrosurgical device, comprising: sensing a voltage at an output of the electrosurgical device; sensing a current at the output of the electrosurgical device; calculating a plurality of sensed impedance values based upon the plurality of sensed voltages and the plurality of sensed currents; predicting a plurality of phase values based upon the plurality of sensed impedance values; calculating a source impedance parameter based upon a first predicted phase value of the plurality of phase values, a first sensed voltage of the plurality of sensed voltages, a first sensed current of the plurality of sensed currents, and a first predetermined load impedance value corresponding to a first load of the plurality of loads; and calculating a leakage impedance parameter based upon a second predicted phase value of the plurality of phase values, a second sensed voltage of the plurality of sensed voltages, a second sensed current of the plurality of sensed currents, and a second predetermined load impedance value corresponding to a second load of the plurality of loads.
 4. The method of claim 3, wherein calculating the source impedance parameter includes: converting the first sensed voltage to a first peak voltage value based upon the predicted first phase value; converting the first sensed current to a first peak current value based upon the predicted first phase value; calculating a first output voltage value based upon the first peak voltage value, the first peak current value, and a previous source impedance parameter; calculating a first output current value based upon the first output voltage value, the peak current value, and a previous leakage impedance parameter; and calculating the source impedance parameter based upon the first output current value, the first predetermined load impedance value, the first peak voltage value, and the first peak current value.
 5. The method of claim 4, wherein calculating the source impedance parameter includes: calculating a desired output voltage value by multiplying the first output current value by the first predetermined load impedance value; calculating a desired source voltage value by subtracting the desired output voltage value from the first peak voltage value; and calculating the source impedance parameter by dividing the desired source voltage value by the first peak current value.
 6. The method of claim 4, wherein calculating the leakage impedance parameter includes: converting the second sensed voltage to a second peak voltage value based upon the predicted second phase value; converting the second sensed current to a second peak current value based upon the predicted second phase value; calculating a second output voltage value based upon the second peak voltage value, the second peak current value, and the previous source impedance parameter; and calculating the leakage impedance parameter based upon the second output voltage value, the second predetermined load impedance value, and the second peak current value.
 7. The method of claim 6, wherein calculating the leakage impedance parameter includes: calculating a desired output current value by dividing the second output voltage value by the second predetermined load impedance value; calculating a desired current value by subtracting the desired output current from the second peak current value; and calculating the leakage impedance parameter by dividing the desired current value by the second output voltage value.
 8. The method of claim 6, wherein calculating the leakage impedance parameter further includes iterating the steps of: calculating a first output voltage value; calculating a first output current value; calculating the source impedance parameter; calculating a second output voltage value; and calculating the leakage impedance parameter.
 9. The method of claim 8, wherein the previous source impedance parameter and the previous leakage impedance parameter are set to initial values before a first iteration.
 10. The method of claim 6, wherein the first predetermined load impedance value is less than the second predetermined load impedance value.
 11. The method of claim 3, wherein predicting the plurality of phase values includes predicting the plurality of phase values based upon a polynomial function of the plurality of sensed impedance values.
 12. The method of claim 11, wherein the polynomial function is a third-order polynomial function.
 13. The method of claim 3, wherein the plurality of loads includes loads rated between 0 ohms and 5000 ohms.
 14. The method of claim 3, further comprising sensing an impedance of each load of the plurality of loads using an impedance meter to obtain a plurality of predetermined load impedance values, the plurality of predetermined load impedance values comprising the first predetermined load impedance value and the second predetermined load impedance value.
 15. A computer system for calibrating measurement circuitry of an electrosurgical device, comprising: a memory that stores measurement data including a plurality of voltage values sensed at an output of the electrosurgical device, a plurality of current values sensed at the output of the electrosurgical device, a plurality of predicted phase values, and a plurality of predetermined load impedance values; a processor coupled to the memory, the processor configured to (1) calculate a source impedance parameter based upon a first predicted phase value of the plurality of phase values, a first sensed voltage of the plurality of sensed voltage values, a first sensed current of the plurality of sensed current values, and a first predetermined load impedance value, and (2) calculate a leakage impedance parameter based upon a second predicted phase value of the plurality of phase values, a second sensed voltage of the plurality of sensed voltage values, a second sensed current of the plurality of sensed current values, and a second predetermined load impedance value; and a communications interface that transmits the source impedance parameter and the leakage impedance parameter to the measurement circuitry of the electrosurgical device.
 16. The computer system of claim 15, wherein the communications interface receives the plurality of sensed voltage values and the plurality of sensed current values from the electrosurgical device and stores the plurality of sensed voltage values and the plurality of sensed current values in the memory.
 17. The computer system of claim 15, wherein the processor is a first processor, the source impedance parameter is a first source impedance parameter, and the leakage impedance parameter is a first leakage impedance parameter, and wherein the computer system further comprises a second processor that: calculates a second source impedance parameter based upon the first predicted phase value of the plurality of phase values, the first sensed voltage of the plurality of sensed voltage values, the first sensed current of the plurality of sensed current values, and the first predetermined load impedance value; calculates a second leakage impedance parameter based upon the second predicted phase value of the plurality of phase values, the second sensed voltage of the plurality of sensed voltage values, the second sensed current of the plurality of sensed current values, and the second predetermined load impedance value; averages the first source impedance parameter and the second source impedance parameter to obtain an average source impedance parameter; and averages the first leakage impedance parameter and the second leakage impedance parameter to obtain an average leakage impedance parameter, wherein the communications interface transmits the average source impedance parameter and the average leakage impedance parameter to the measurement circuitry of the electrosurgical device. 